
public class MethodReferenceDemo1 {
    public static void main(String[] args) {
       // usePrintable( i -> System.out.println(i));
        //方法引用
        usePrintable(System.out::println);
    }
    private static void usePrintable(Printable p){
        p.printInt(666);
    }
}
interface Printable{
    void printInt(int i);
}